<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>用户注册</title>
    <!-- 引入Bootstrap CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <style>
        .registration-container {
            max-width: 600px;
            margin: 2rem auto;
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 0 15px rgba(0,0,0,0.1);
            background-color: #ffffff;
        }
        .form-icon {
            color: #6c757d;
            font-size: 1.2rem;
        }
        .avatar-preview {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #dee2e6;
            margin-bottom: 1rem;
        }
        .form-control:focus {
            border-color: #80bdff;
            box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
        }
        .btn-submit {
            background-color: #0d6efd;
            color: white;
            transition: all 0.3s ease;
        }
        .btn-submit:hover {
            background-color: #0b5ed7;
        }
    </style>
</head>
<body class="bg-light">
<div class="registration-container">
    <h2 class="mb-4 text-center">前台用户增加</h2>
    <form action="${pageContext.request.contextPath}/insertClassIf" method="get" >

        <!-- 分类名称 -->
        <div class="mb-3">
            <label class="form-label"><i class="bi bi-lock-fill form-icon"></i> 分类名称</label>
            <input type="text" class="form-control" name="classif_name" placeholder="分类名称" required>
        </div>

        <!-- 状态 -->
        <div class="mb-4">
            <label class="form-label"><i class="bi bi-toggle-on form-icon"></i> 账户状态</label>
            <select class="form-select" name="classif_de">
                <option value="1">启用</option>
                <option value="0">禁用</option>
            </select>
        </div>

        <!-- 操作按钮 -->
        <div class="d-grid gap-2">
            <button type="submit" class="btn btn-submit btn-lg">提交注册</button>
            <button type="reset" class="btn btn-outline-secondary btn-lg">重置</button>
        </div>
    </form>
</div>

</body>
</html>
